package com.dinzeer.slashblade_useful_addon.config;

import net.minecraftforge.common.ForgeConfigSpec;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.event.config.ModConfigEvent;

public class SoulCrystalConfig {
    private static final ForgeConfigSpec.Builder BUILDER = new ForgeConfigSpec.Builder();
    public static final ForgeConfigSpec.IntValue SoulCrystalKillCount = BUILDER
            .comment("魂缚晶增加的杀敌数")
            .defineInRange("soul_crystal_add_killcount", 100, 0, Integer.MAX_VALUE/10);
    public static final ForgeConfigSpec.IntValue SoulCrystalProudSoul = BUILDER
            .comment("魂缚晶增加的耀魂数")
            .defineInRange("soul_crystal_add_proud_soul", 300, 0, Integer.MAX_VALUE/10);
    public static final ForgeConfigSpec.IntValue SoulCrystalRefine = BUILDER
            .comment("魂缚晶增加的锻造数")
            .defineInRange("soul_crystal_add_refine", 1, 0, Integer.MAX_VALUE/10);
    public static final ForgeConfigSpec.BooleanValue SoulCrystalDrop = BUILDER
            .comment("魂缚晶能掉落开关")
            .define("soul_crystal_drop", true);
    public static final ForgeConfigSpec.IntValue SoulCrystalDropMax = BUILDER
            .comment("魂缚晶最多掉落数")
            .defineInRange("soul_crystal_drop_max", 10, 0, Integer.MAX_VALUE/10);
    public static final ForgeConfigSpec.IntValue SoulCrystalDropDivisor = BUILDER
            .comment("魂缚晶额外掉落除数")
            .defineInRange("soul_crystal_drop_divisor", 50, 0, Integer.MAX_VALUE/10);
    public static final ForgeConfigSpec.IntValue SoulCrystalDropThreshold = BUILDER
            .comment("魂缚晶额外掉落血量门槛")
            .defineInRange("soul_crystal_drop_threshold", 200, 0, Integer.MAX_VALUE/10);

    public static final ForgeConfigSpec SPEC = BUILDER.build();

}
